local awful = require("awful")
local ass = awful.spawn
local ash = awful.spawn.easy_async_with_shell
local aus = awful.util.spawn

local pic_folder = " /home/"..os.getenv("USER").."/Pictures/"
local scrot_base = "scrot -F "..pic_folder.."$(date +%Y-%m-%d_%H-%M-%S).png".." -e 'xclip -selection clipboard -t image/png -i $f' -q 100"

return {
    -- Favorite apps
    {{M}, "#67", function() ass("firefox") end},
    {{M}, "#68", function() ass("pavucontrol") end},
    {{M}, "#69", function() ass("telegram-desktop") end},
    {{M}, "#70", function() ass("gimp") end},

    {{M, M1}, "#69", function() ass("discord") end},
    {{M, M1}, "Return", function() ass("emacsclient -nc") end},
    {{M}, "Return", function () awful.spawn(terminal) end},

    -- Screenshot
    {{}, "Print", function() ash(scrot_base, function() end) end},
    {{C}, "Print", function() ash(scrot_base.." -u", function() end) end},
    {{M}, "Print", function() ash(scrot_base.." -s", function() end) end},

    -- Picom. toggle on/off
    {{M}, "#74", function() ass("picom") end},
    {{M, M1}, "#74", function() ass("pkill picom") end},
}

